home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / diag / tipsamp1.zip / TIPS-020.ASC < prev    next >
Text File  |  1992-07-16  |  4KB  |  75 lines

  1. TIP #:     020
  2. KEYWORDS:  DESQview, Caching, Super PC-Kwik
  3. UPDATED:   September, 1990
  4.  
  5.  
  6. PROBLEM:   How should caching be set up under DESQview?  Is it different than
  7.            under DOS?
  8.  
  9. SYMPTOMS:  Improper caching setup under DESQview can introduce many unwanted
  10.            side-effects.  These include slow operation, file corruption, and
  11.            hangs.
  12.  
  13. SOLUTION:  The most important thing is to choose the right caching program.
  14.            My recommendation would be Super PC-Kwik.  From my own experience,
  15.            this is the fastest and most compatible of the caches.  I have also
  16.            used ADCACHE and PC-Cache 5.5 with success.  I have not been able
  17.            to get PC-Cache 6.0 to work reliably.  At this point, I would not
  18.            recommend PC-Cache 6.0.
  19.  
  20.            A cache works by buffering information read from the hard disk into
  21.            memory.  Then when a read request comes along, the memory is
  22.            checked for the information.  If it is in memory already, the
  23.            information is transferred without any hard drive activity!  Since
  24.            memory is much faster than any hard drive, the system operates
  25.            faster.  Some of the newer caches such as Super PC-Kwik, ADCACHE,
  26.            and PC-Cache 6.0 also offer a feature called "Write-Caching".  This
  27.            allows the cache to buffer disk writes as well as disk reads.
  28.            Under DESQview, this feature should be turned off.  Otherwise
  29.            DESQview could terminate an application without the cache being
  30.            flushed first.  If your machine ever hangs, you may suffer file
  31.            corruption.  Always load the cache before DESQview.
  32.  
  33.            I also recommend running your cache under Expanded (EMS) memory.
  34.            Although EMS is slightly slower than Extended, there are less
  35.            problems with interrupt latency when running in EMS.  If you are
  36.            doing any communications from within DESQview, use EMS, not
  37.            extended.
  38.  
  39.            My parameter line to invoke Super PC-Kwik is as follows:
  40.  
  41.            SUPERPCK /A+ /S:3000 /H- /D- /T:8 /P- /-A /-B /-M /-N
  42.  
  43.            This sets up Super PC-Kwik to:   use expanded memory (/A+), 3
  44.            megabytes (/S:3000), disable write caching on the hard drive (/H-),
  45.            disable write caching on the floppy drives (/D-), buffer 8 sectors
  46.            (/T:8), don't display the parameters at bootup (/P-), don't buffer
  47.            floppy A: or B: (/-A /-B), and don't buffer the RAM drive or CD-ROM
  48.            (/-M /-N).
  49.  
  50.            The /T:8 parameter may need a little more explanation.  When an
  51.            application requests a disk read, most caches allow you to specify
  52.            how much of the rest of the track to read in to the buffer.  Super
  53.            PC-Kwik defaults to reading the entire track (/T+).  Normally this
  54.            is okay, but in my case I have an ESDI drive which claims to have
  55.            63 sectors per track.  When an application requested a disk read on
  56.            my system, the cache would read in the rest of the track, up to 63
  57.            sectors!  This actually caused a reduction in the effectiveness of
  58.            the cache.  On MFM drives with 17 sectors per track, you may be
  59.            able to use the defaults, but on RLL or ESDI drives, you are better
  60.            off reducing the number of sectors to read in.  You can experiment
  61.            with different settings by using the parameters option and trying
  62.            different settings.  With enough memory and the proper settings it
  63.            is possible to get "hit rates" greater than 90%.  My system
  64.            typically runs about 93% or more.
  65.  
  66.            Although I have detailed the settings for Super PC-Kwik, the
  67.            concepts are similar no matter what cache you use.
  68.  
  69.            Another often overlooked benefit of caching is that you can reduce
  70.            the number of DOS buffers needed.  Usually you can set BUFFERS=4 or
  71.            BUFFERS=6 in your CONFIG.SYS.  This helps to regain some of the
  72.            memory lost by the cache program itself.  You can usually load the
  73.            cache into high RAM if you have enough room.  I have successfully
  74.            loaded Super PC-Kwik, ADCACHE, and PC-Cache 5.5 high.
  75.